﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace SaaSKit.Taskr.Service
{
    [DataContract(Namespace = "SaaSKit.Taskr", Name = "Activity")]
    public class ActivityDTO
    {
        [DataMember(Name = "Id")]
        public Guid TaskId { get; set; }

        [DataMember(Name = "CreatedDate")]
        public DateTime CreatedDate { get; set; }

        [DataMember(Name = "Author")]
        public string Author { get; set; }

        [DataMember(Name = "Description")]
        public string Description { get; set; }

        public override string ToString()
        {
            return string.Format
            (
                "TaskId: '{0}'\nCreatedDate: '{1}'\nAuthor: '{2}'\nDescription: '{3}'\n",
                TaskId, CreatedDate, Author, Description
            );
        }
    }
}
